import { connect } from 'react-redux'
// import { i}
import * as Action  from '../modules/fields'

import Manager from '../components/Manager'

const mapDispatchToProps={
	addOneField:Action.addOneField,
	getAllFields:Action.getAllFields,
	deleteOneFieldById:Action.deleteOneFieldById,
}

const mapStateToProps=(state)=>{
  return state
}

export default connect(mapStateToProps,mapDispatchToProps)(Manager)